package emtext;

public class PartTimeEmployee extends Employee{
    double hours;
    double hourlyRate;

    public PartTimeEmployee(int id, String name,double hours, double hourlyRate) {
        super(id, name);
        this.hours = hours;
        this.hourlyRate = hourlyRate;
    }

    public double calculateSalary(){
        return hours*hourlyRate;
    }
}
